﻿namespace mini_project.Library.Model;
/*
 * 作者：韩天宇
 */
[SQLite.Table("todoItem")]
public class Item
{
    [SQLite.PrimaryKey, SQLite.AutoIncrement, SQLite.Column("id")]
    public int Id { get; set; }

    [SQLite.Column("content")]
    public string Content { get; set; } = " "; // 代办事项内容

    [SQLite.Column("status")]
    public int Status { get; set; } = 0; // 代办事项的状态，1:已完成，0：未完成

    [SQLite.Column("isDeleted")]
    public int IsDeleted { get; set; } = 0; // 代办事项是否被删除，1：已删除，0：未删除

    [SQLite.Column("time")]
    public DateTime Time { get; set; } = DateTime.Now;

    public override string ToString()
    {
        return $"Id: {Id}, Content: {Content}, Status: {Status}, IsDeleted: {IsDeleted}, Time: {Time}";
    }
}